/*
 * PropertyHelper.cpp
 *
 *  Created on: 2011-3-26
 *      Author: wangchao
 */

#include "PropertyHelper.h"
#if 0
class Window
{
public:
    Property< bool > _visible;
};

class Button : public Window
{
public:
    Button( )
    {
        _visible.Register<Button,&Button::VisableChanged>( this );
    }
public:
    void VisableChanged( bool visable )
    {

    }
};

void t( )
{
    Window w;
    Button b;
    b._visible = false;
    if( b._visible )
    {
        w._visible = b._visible;
    }
}
#endif
